export interface ListParams {
  page?: string;
  pageSize?: string;
  name?: string;
  idCard?: string;
  beginDate?: string;
  state?: number | null;
  endDate?: string;
}

export interface ListData {
  id: number;
  companyId: number;
  name: string;
  mobile: string;
  gender: number;
  birthday: string | null;
  status: string;
  icCard: string;
  roomRequire: string;
  content: string;
  state: number;
  source: string;
  addTime: string;
  addAccountId: number;
  addAccountName: string;
  stateName: string;
  family: null;
}

export interface ListResult {
  counts: number;
  pageSize: number;
  list: ListData;
}

export interface FamilyData {
  id?: number;
  name: string;
  mobile: string;
  idCard: string;
  relation: string;
  gender: number;
  address: string;
}

export interface AddParams {
  name: string;
  mobile: string;
  gender: number | undefined;
  birthday: string;
  status: string;
  idCard: string;
  roomRequire: string;
  content: string;
  state: number;
  source: string;
  family: FamilyData[];
}

export interface AddResult {
  id: number;
  companyId: number;
  name: string;
  mobile: string;
  gender: number;
  birthday: null;
  status: string;
  idCard: string;
  roomRequire: string;
  content: string;
  state: number;
  source: string;
  addTime: string;
  addAccountId: number;
  addAccountName: null | string;
  stateName: null | string;
  family: FamilyData[];
}
